﻿using System;

namespace Skynet.CommonLibrary.ThreadRefreshTime.Interface
{
    /// <summary>
    /// 复杂刷新元素接口
    /// </summary>
    ///<remarks>
    /// 作者：         李志强
    /// 开发时间：  2011-03-28
    /// </remarks>
    public interface IRefreshTaskTimer : IRefreshTimer
    {
        /// <summary>
        /// 刷新次数
        /// </summary>
        int RefreshNumber { get; set; }

        /// <summary>
        /// 当前刷新到第几次
        /// </summary>
        int CurrentRefreshNumber { get; set; }

        /// <summary>
        /// 执行条件
        /// </summary>
        Func<DateTime, bool> TaskConditions { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        DateTime TaskStartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        DateTime TaskEndTime { get; set; }
    }
}
